require 'font-awesome-rails'
require 'jquery-rails'
require 'sass-rails'
require 'bootstrap-sass'

$zero_engine_dir = File.expand_path("../../../", __FILE__)
require File.join($zero_engine_dir, "lib", "plugin_routes").to_s
Dir[File.join($zero_engine_dir, "lib", "ext", "**", "*.rb")].each{ |f| require f }

module ZeroCms
  class Engine < ::Rails::Engine
    isolate_namespace ZeroCms

    initializer :append_migrations do |app|
    	engine_dir = File.expand_path("../../../", __FILE__)

    	# multiple route files
    	app.routes_reloader.paths.push(File.join(engine_dir, "config", "routes", "admin.rb"))
    end
  end
end
